<template>
	<view class="gjl-view">
		<!-- <u-navbar :title="info.title"></u-navbar> -->
		<view class="content">
			<u-parse :html="info.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				query: {},
				content: '',
				info: {
					title: '签到规则'
				}
			}
		},
		onLoad(item) {
			this.query = item;
			this.getDetail();
		},
		methods:{
			// 获取富文本信息
			getDetail(){
				let obj = {
					id: this.query.id
				}
				this.$apis.getArticleDetail(obj).then((res)=>{
					const {detail} = res;
					this.info = detail;
					const {title} = detail;
					uni.setNavigationBarTitle({
					    title: `${title}`
					});
				})
			}
		},
	}
</script>

<style scoped lang="scss">
	.gjl-view{
		.content{
			padding: 30rpx;
		}
	}
</style>